# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   献血社区

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.donate_blood_page import DonateBloodPage


class DonateBloodCase(UIParent):

    @classmethod
    def test_donate_blood_check(cls):
        '''献血社区校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("献血社区")
        authorizePage.ifAuthorize()

        status = DonateBloodPage.donate_blood_index()
        asserts.true(status, "献血社区校验")
